<template>
	<yplayout>
		<template #header="props">
			<div class="flex items-center">
				<i class="ri-2x text-gray-500 ml-2" :class="props.meta.icon || 'ri-information-line'"></i>
				<p class="text-xl px-2">编辑公告</p>
			</div>
		</template>
		<template #list>
			<Form type="edit" :id="articleId"></Form>
		</template>
	</yplayout>
</template>

<script setup>
	import { router } from '@/router'
	import Form from './components/form.vue'
	const articleId = router.currentRoute.value.query.id
</script>
